<?php
class Database_Connect
{
	public static function connect(&$objDb)
	{	
		$objConf 	= new Zend_Config_Ini(ROOT_LIBRARY . '/Database/config.ini', 'db');
		$arrConf 	= $objConf->db->toArray() + array('driver_options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8;'));
		$objDb 		= Zend_Db::factory($arrConf['adapter'], $arrConf['config']);
		Zend_Registry::set('objDb', $objDb);
	}		
}